-
Notifications
You must be signed in to change notification settings - Fork 320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port gcc-dg tests from GCC #49
base: main
Are you sure you want to change the base?
Port gcc-dg tests from GCC #49
Conversation
Cool, I am going to test it in our downstream. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Build failed on my end, please consider add the following
git diff SingleSource/Regression/DgOptions.txt
diff --git a/SingleSource/Regression/DgOptions.txt b/SingleSource/Regression/DgOptions.txt
index 935899dfc..f951ce935 100644
--- a/SingleSource/Regression/DgOptions.txt
+++ b/SingleSource/Regression/DgOptions.txt
@@ -8,9 +8,13 @@ set(CLANG_ERRORING_CFLAGS
"-fopt-"
"-fno-ipa-"
"-fno-ira-"
+ "-fno-ira-share-spill-slots"
"-ftree-loop-"
+ "-ftree-loop-distribution"
"-fno-tree-b"
+ "-fno-tree-bit-ccp"
"-fno-tree-c"
+ "-fno-tree-coalesce-vars"
"-fno-tree-d"
"-fno-tree-f"
"-fno-tree-t"
In the |
Why not keep these tests out-of-tree like SPEC benchmarks? I think they are licensed under GPL. |
The test suite already has a variety of different licenses, including GPL. I think it's convenient to have the sources in-tree when the license allows it. Are there any other tests that are kept out of tree that are open source? |
Fixed. The error flags where supposed to be excluded by regex |
Do you mean gcc main? This PR only added the tests directly in gcc.dg without the subdirectories. If you mean the main of this repo, this PR only adds tests. It doesn't remove. |
No. I meant llvm-test-suite. The test result of llvm-test-suite
On your branch
|
common parts between C/gcc-c-torture/CMakeLists.txt and the new C/gcc-dg/CMakeLists.txt are put in DgOptions.txt
6bc54cc
to
5140f8f
Compare
Oh that was probably because my branch wasn't rebased to latest master. I did now
It wasn't included by default. Had to be included explcitly with -DTEST_SUITE_SUBDIRS. Now changed to include by default. |
Gentle ping for this |
I'm getting the following error on x86 clang 17.0.4
I suppose that we need |
Hi all, I've picked up and continued Mohammed's work in a new MR here - I hope this is the appropriate workflow, please let me know if I should do this differently. |
This was copied from a snapshot of gcc at 0c37fef39fa. The allowlist was tested using glibc and qemu on riscv.
Would appreciate any help regarding copyrights, what notices should be included